<UserControl x:Class="Microsoft.PowerShell.CmdletManagement.FreeTextExtendedTextBlock"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Name="root">

	<Grid Margin="5,5,15,5">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal">
		        <TextBlock Grid.Row="0" Grid.Column="0"
					           Text="{Binding Label, ElementName=root}" />
		        <TextBlock Grid.Row="0" Grid.Column="1" 
                  Text="{Binding HelpText, ElementName=root}" 
                  Foreground="{DynamicResource HelpTextFontColor}"
                     Margin="10,0,0,0"/>
        </StackPanel>
        <TextBox x:Name="FreeText"  Text="{Binding Value, ElementName=root, UpdateSourceTrigger=PropertyChanged}"
                   MinLines="{Binding MinLines, ElementName=root}" 
                   FontFamily="{Binding TextFontFamily, ElementName=root}"
                   TextWrapping="Wrap" 
                   VerticalScrollBarVisibility="Auto"
                   AcceptsReturn="True" Margin="0,0,10,0"
                   Grid.Row="1" 
				   SpellCheck.IsEnabled="True"></TextBox>
		
	</Grid>
</UserControl>
